-------------------------------------------------------------------------------------
-- -*- coding: utf-8 -*-
--
-- @author:   zxf
-- @email:    07291@qq.com
-- @date:     2024/7/22
-- @module:   MAIN_TARGET_TYPE_CONFIG
-- @describe: 目标类型
-- @version:  v1.0
--

-------------------------------------------------------------------------------------

---@class MAIN_TARGET_TYPE_CONFIG
local MAIN_TARGET_TYPE_CONFIG = {}
local this = MAIN_TARGET_TYPE_CONFIG

-- 目标类型
this.TYPE = {
    NONE                      = '空',
    TEST                      = '测试',
    MAIN_TASK                 = '主线',
    LOGIN                     = '登录',
    WAIT                      = "等待",
    HUNT                      = "挂机",
    TEAM_UP                   = "组队",

}
local TYPE = this.TYPE

-- 行为树中目标类型枚举配置
this.TYPE_OPTIONS = {
    {
        name = TYPE.NONE,
        value = TYPE.NONE
    },
    {
        name = TYPE.TEST,
        value = TYPE.TEST,
        filePath = "test.json"
    },
    {
        name = TYPE.MAIN_TASK,
        value = TYPE.MAIN_TASK,
        filePath = "main.json"
    },
    {
        name = TYPE.LOGIN,
        value = TYPE.LOGIN,
        filePath = "login.json"
    },
    {
        name = TYPE.WAIT,
        value = TYPE.WAIT,
        filePath = "wait.json"
    },
    {
        name = TYPE.HUNT,
        value = TYPE.HUNT,
        filePath = "hunt.json"
    },
    {
        name = TYPE.TEAM_UP,
        value = TYPE.TEAM_UP,
        filePath = "team/team_up.json"
    },
}

-- 功能关闭的枚举
this.close_func_options = {
    --{
    --    name = '领取邮件',
    --    value = '领取邮件',
    --},
}

-- 配置枚举
this.main_target_weight_options = {
    --{
    --    name = '主线',
    --    value = '主线',
    --},
}

-- 优先级配置 priority数值越低 优先级越高
this.PRIORITY_CONFIG = {
    [TYPE.WAIT] = { name = TYPE.WAIT, priority = -3 },
    --[TYPE.CLOSE_OTHER_WINDOW] = { name = TYPE.CLOSE_OTHER_WINDOW, priority = -2 },
    [TYPE.TEST] = { name = TYPE.TEST, priority = -1 },
    [TYPE.LOGIN] = { name = TYPE.LOGIN, priority = 0 },
    [TYPE.HUNT] = { name = TYPE.HUNT, priority = 3.9 },
    -- 组队
    [TYPE.TEAM_UP] = { name = TYPE.TEAM_UP, priority = 4 },


}

-- 自定义优先级配置
this.CUSTOM_PRIORITY_CONFIG = {
    --[TYPE.TEST] = {
    --    [TYPE.TEST2] = { name = TYPE.TEST2, priority = -2 },
    --},
    --[TYPE.TEST2] = {
    --    [TYPE.TEST] = { name = TYPE.TEST, priority = -3 },
    --}

}

return this
